/*     */ package com.umeng.analytics;
/*     */ 
/*     */ import android.content.Context;
/*     */ import android.util.Log;
/*     */ import com.umeng.analytics.a.a;
/*     */ import com.umeng.analytics.a.d;
/*     */ import com.umeng.analytics.a.e;
/*     */ import com.umeng.analytics.a.h;
/*     */ import com.umeng.analytics.a.i;
/*     */ import com.umeng.analytics.a.m;
/*     */ import com.umeng.common.b;
/*     */ import java.util.HashMap;
/*     */ import org.json.JSONObject;
/*     */ 
/*     */ public class c
/*     */ {
/*  29 */   private i a = new i();
/*     */ 
/*  32 */   private HashMap<String, k> b = new HashMap();
/*  33 */   private HashMap<String, HashMap<String, String>> c = new HashMap();
/*     */ 
/*  35 */   private int d = 10;
/*     */ 
/*     */   public void a(int paramInt) {
/*  38 */     this.d = paramInt;
/*     */   }
/*     */ 
/*     */   public int a() {
/*  42 */     return this.a.b();
/*     */   }
/*     */ 
/*     */   public boolean b() {
/*  46 */     return this.a.b() > this.d;
/*     */   }
/*     */   public void a(String paramString) {
/*  49 */     if (this.b.containsKey(paramString)) {
/*  50 */       ((k)this.b.get(paramString)).a(Long.valueOf(System.currentTimeMillis()));
/*     */     } else {
/*  52 */       k localk = new k(paramString);
/*  53 */       localk.a(Long.valueOf(System.currentTimeMillis()));
/*  54 */       this.b.put(paramString, localk);
/*     */     }
/*     */   }
/*     */ 
/*     */   public long b(String paramString) {
/*  59 */     if (this.b.containsKey(paramString)) {
/*  60 */       return ((k)this.b.get(paramString)).a().longValue();
/*     */     }
/*  62 */     return -1L;
/*     */   }
/*     */ 
/*     */   public void a(String paramString, HashMap<String, String> paramHashMap) {
/*  66 */     if (!this.c.containsKey(paramString)) this.c.put(paramString, paramHashMap); 
/*     */   }
/*     */ 
/*     */   public HashMap<String, String> c(String paramString)
/*     */   {
/*  70 */     if ((this.b.containsKey(paramString)) && (((k)this.b.get(paramString)).b() > 0)) {
/*  71 */       return (HashMap)this.c.get(paramString);
/*     */     }
/*  73 */     return (HashMap)this.c.remove(paramString);
/*     */   }
/*     */ 
/*     */   public synchronized void a(String paramString1, String paramString2, String paramString3, long paramLong, int paramInt)
/*     */   {
/*  78 */     this.a.a(new e(paramString1, paramString2, paramString3, paramInt, paramLong));
/*     */   }
/*     */ 
/*     */   public synchronized void a(String paramString1, String paramString2, HashMap<String, String> paramHashMap, long paramLong) {
/*  82 */     this.a.a(paramString1, new a(paramString2, paramHashMap, paramLong));
/*     */   }
/*     */ 
/*     */   public synchronized void a(d paramd) {
/*  86 */     this.a.a(paramd);
/*     */   }
/*     */ 
/*     */   public synchronized void a(h paramh) {
/*  90 */     this.a.a(paramh);
/*     */   }
/*     */ 
/*     */   public synchronized void a(m paramm) {
/*  94 */     this.a.a(paramm);
/*     */   }
/*     */ 
/*     */   public boolean c() {
/*  98 */     return this.a.a();
/*     */   }
/*     */ 
/*     */   public void a(Context paramContext)
/*     */   {
/* 106 */     if (a() <= 0) {
/* 107 */       return;
/*     */     }
/*     */ 
/* 110 */     String str = b.d(paramContext);
/* 111 */     JSONObject localJSONObject = j.a(paramContext, str);
/*     */ 
/* 113 */     i locali = new i();
/*     */ 
/* 115 */     if (localJSONObject != null) locali.a(localJSONObject);
/*     */ 
/* 117 */     synchronized (this) {
/* 118 */       locali.a(this.a);
/* 119 */       this.a.c();
/*     */     }
/*     */ 
/* 122 */     j.a(paramContext, locali, str);
/*     */   }
/*     */ 
/*     */   public void b(Context paramContext)
/*     */   {
/* 130 */     JSONObject localJSONObject = j.a(paramContext, b.d(paramContext));
/*     */ 
/* 132 */     if ((localJSONObject == null) || (localJSONObject.length() == 0)) {
/* 133 */       return;
/*     */     }
/*     */ 
/* 136 */     i locali = new i();
/* 137 */     locali.a(localJSONObject);
/*     */ 
/* 139 */     synchronized (this) {
/* 140 */       this.a.a(locali);
/*     */     }
/*     */   }
/*     */ 
/*     */   public synchronized JSONObject d() {
/* 145 */     JSONObject localJSONObject = null;
/*     */     try {
/* 147 */       localJSONObject = new JSONObject();
/* 148 */       this.a.b(localJSONObject);
/*     */ 
/* 150 */       return localJSONObject;
/*     */     } catch (Exception localException) {
/* 152 */       Log.d("MobclickAgent", "", localException);
/* 153 */     }return null;
/*     */   }
/*     */ 
/*     */   public synchronized void e()
/*     */   {
/* 158 */     this.a.c();
/*     */   }
/*     */ }

/* Location:           C:\Users\Administrator\Desktop\umeng_sdk.jar
 * Qualified Name:     com.umeng.analytics.c
 * JD-Core Version:    0.6.2
 */